package com.platform.api.bzproject.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 余额记录表
 * </p>
 *
 * @author guoshao
 * @since 2021-10-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_balance_record")
public class BalanceRecord extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 来源用户
     */
    private String souUserId;

    /**
     * 变动的钱
     */
    private BigDecimal money;

    /**
     * 类型：1-广告
     */
    private Integer source;

    /**
     * 状态：1：未结算；2已结算；3已打款
     */
    private Integer status;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 数据类型  1收入 2支出
     */
    private Integer dataType;

    /**
     * 流水号
     */
    private String flowNo;

    private String appid;

    /**
     * 修改时间
     */
    private Date updateTime;

    private Long wid;

    //系统收益数据  0否 1是
    private int sysData;

    //平台类型 具体请查看APP.java 平台 1-微信；2-公众号；3-H5；4-抖音；5-快手
    private int platformType;

    @TableField(exist = false)
    private String stime;

    @TableField(exist = false)
    private String thumbnail;

    @TableField(exist = false)
    private int downCount;

    @TableField(exist = false)
    private int classType;


}
